#include<stdio.h>
int main()
{
    int i;
    int year = 0;
    for(i=2017;i<2117;i++)
    {
        if((i%4==0&&i%100!=0)||i%400==0)
        {
            printf("%d\n",i);
            year++;
        }
    }
    printf("year=%d",year);
    return 0;
}